home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
g_man
/
cat3
/
standard
/
lsetdepth.z
/
lsetdepth
Wrap
Text File
|
1998-10-20
|
4KB
|
67 lines
llllsssseeeettttddddeeeepppptttthhhh((((3333GGGG)))) llllsssseeeettttddddeeeepppptttthhhh((((3333GGGG))))
NNNNAAAAMMMMEEEE
llllsssseeeettttddddeeeepppptttthhhh - sets the depth range
CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
vvvvooooiiiidddd llllsssseeeettttddddeeeepppptttthhhh((((nnnneeeeaaaarrrr,,,, ffffaaaarrrr))))
lllloooonnnngggg nnnneeeeaaaarrrr,,,, ffffaaaarrrr;;;;
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
_n_e_a_r expects the screen coordinate of the near clipping plane.
_f_a_r expects the screen coordinate of the far clipping plane.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
vvvviiiieeeewwwwppppoooorrrrtttt specifies the mapping of the left, right, bottom, and top
clipping planes into screen coordinates. llllsssseeeettttddddeeeepppptttthhhh completes this
mapping for homogeneous world coordinates; it specifies the mapping of
the near and far clipping planes into values stored in the z-buffer.
llllsssseeeettttddddeeeepppptttthhhh is used in z-buffering, depth-cueing, and certain feedback
applications.
The valid range of the parameters depends on the state of the
GLC_ZRANGEMAP compatibility mode (see ggggllllccccoooommmmppppaaaatttt). If it is 0, the valid
range depends on the graphics hardware. When multisample is enabled, and
multisample buffers exist in the current framebuffer configuration in the
current drawmode, the minimum is the value returned by
ggggeeeettttggggccccoooonnnnffffiiiigggg((((GGGGCCCC____MMMMSSSS____ZZZZMMMMIIIINNNN)))) and the maximum is the value returned by
ggggeeeettttggggccccoooonnnnffffiiiigggg((((GGGGCCCC____MMMMSSSS____ZZZZMMMMAAAAXXXX)))). Otherwise, the minimum is the value returned by
ggggeeeettttggggccccoooonnnnffffiiiigggg((((GGGGCCCC____ZZZZMMMMIIIINNNN)))) and the maximum is the value returned by
ggggeeeettttggggccccoooonnnnffffiiiigggg((((GGGGCCCC____ZZZZMMMMAAAAXXXX)))). If the state of the GLC_ZRANGEMAP compatibility
mode is 1, the minimum is 0x0 and the maximum is 0x7FFFFF. The depth
range defaults to the full range supported by the graphics hardware.
Acceptable mappings include all those where both _n_e_a_r and _f_a_r are within
the supported range, including mappings where _n_e_a_r > _f_a_r. In particular,
it is sometimes desirable to call llllsssseeeettttddddeeeepppptttthhhh((((0000xxxx7777FFFFFFFFFFFFFFFFFFFF,,,, 0000xxxx0000)))) on IRIS-4D GT
and GTX models.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
depthcue, feedback, getgdesc, glcompat, zbuffer
NNNNOOOOTTTTEEEESSSS
Error accumulation in the iteration of _z can cause wrapping when the full
depth range supported by the graphics hardware is used. (An iteration
wraps when it accidentally converts an large positive value into a
negative value, or vice versa.) While the effects of wrapping are
typically not observed, if they are, they can be eliminated by reducing
the depth range by a small percentage.
When using this routine, you should always explicitly set the
GLC_ZRANGEMAP mode of ggggllllccccoooommmmppppaaaatttt because its default is different on
different models.
PPPPaaaaggggeeee 1111